package com.contextor.magiccards.web.to;

import java.io.Serializable;

/**
 * User: sergey
 * Date: Mar 14, 2011 3:14:57 PM
 */
public class Response<T> implements Serializable {

    public String errorCode;
    public String errorDescription;
    public Object result;


    public Response() {
    }

    public Response(Object result, String errorCode, String errorDescription) {
        this.result = result;
        this.errorCode = errorCode;
        this.errorDescription = errorDescription;
    }

    public Response(Object result, String errorCode) {
        this.result = result;
        this.errorCode = errorCode;
    }

    public Response(T result) {
        this.result = result;
    }
}
